package com.design.pattern.behaviour.observer;

/**
 * @Author hanyuanlai
 * @Date 2022/8/22
 */
public class Test {
    public static void main(String[] args) {
        ConcreteSubject concreteSubject = new ConcreteSubject();
        concreteSubject.register(new ConcreteObserver("a",concreteSubject));
        concreteSubject.setState("000");
        concreteSubject.notity();
    }
}
